class FailLoad extends egret.DisplayObjectContainer{
    private gallery:egret.BitmapText;
    private score_reqular:egret.BitmapText;
    public reloadbutton = new egret.BitmapText();

    constructor(){
        super();

        RES.getResByUrl("resource/assets/reqular.fnt" , this.failload , this,RES.ResourceItem.TYPE_FONT);
        RES.getResByUrl("resource/assets/failload.fnt" , this.failload , this,RES.ResourceItem.TYPE_FONT);
    }

    public bg(font:egret.BitmapFont){
        // 画卷
        this.gallery = new egret.BitmapText();
        this.gallery.font = font;
        this.gallery.text = "卷"  
        this.gallery.scaleX = 0.52;
        this.gallery.scaleY = 0.55;  
        this.gallery.x = 0;
        this.gallery.y = 0; 
        this.addChild(this.gallery);
    }

    public failload(font:egret.BitmapFont){    

        //加载失败
        this.score_reqular = new egret.BitmapText();
        this.score_reqular.font = font;
        this.score_reqular.text = "f"  
        this.score_reqular.scaleX = 0.65;
        this.score_reqular.scaleY = 0.65;  
        this.score_reqular.x = 75;
        this.score_reqular.y = 100;
        this.addChild(this.score_reqular);

        //点我重新加载按钮
        // this.button = new egret.BitmapText();
        this.reloadbutton.font = font;
        this.reloadbutton.text = "r"  
        this.reloadbutton.scaleX = 0.7;
        this.reloadbutton.scaleY = 0.7;  
        this.reloadbutton.x = 160;
        this.reloadbutton.y = 330;
        this.addChild(this.reloadbutton);
    }
}